package finance

class UserCdAccount {
	
	Long id
	Long version
	User user
	String name
	Currency currency
	BigDecimal principle_amount
	BigDecimal number_of_months
	BigDecimal interest_rate
	BigDecimal compound_period
	Date start_date
	
    static constraints = {
    }
	
	static mapping = {
		table 'user_cd_account'
		columns {
			id column: 'user_cd_account_id'
		}
	}
	
	String toString() {
		return "UserCdAccount: ${id}, ${user}, ${name}, ${currency}, ${principle_amount}, ${number_of_months}, ${interest_rate} ${compound_period}, ${start_date}"
	}
}